import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int count=scanner.nextInt();
        if (count==1){
            System.out.println(1);
            return;
        }
        int i,j;
        for (i=1;i<=count;i++){
            System.out.print(i+" ");
        }
        for (j=count-1;j>1;j--){
            System.out.print(j+" ");
        }
        System.out.println(j);
    }
}
